
function initMail(){

var field=document.auth.mail;
if (field.value == "Email")
 field.value = "";
}

function initMDP(){

var field=document.auth.MDP;
if (field.value == "******")
 field.value = "";
}



function verifMail(){

var field=document.auth.mail;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifMDP(){

var field=document.auth.MDP;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function valid(){

var OK=verifMail();
OK=verifMdp && OK;
return OK;

}










function initMail2(){

var field=document.inscrp.mail;
if (field.value == "Email")
 field.value = "";
}

function initMDP2(){

var field=document.inscrp.mdp;
if (field.value == "******")
 field.value = "";
}

function initTel(){

var field=document.inscrp.tel;
if (field.value == "Tel")
 field.value = "";
}

function initconfMDP()
{
	var field=document.inscrp.confMdp;
if (field.value == "******")
 field.value = "";

}

function initConfMail()
{
	var field=document.inscrp.confmail;
if (field.value == "Email")
 field.value = "";

}

function initNom()
{
	var field=document.inscrp.nom;
if (field.value == "Nom")
 field.value = "";

}

function initAdresse()
{
	var field=document.inscrp.adresse;
if (field.value == "Adresse")
 field.value = "";

}

function initPrenom()
{
	var field=document.inscrp.prenom;
if (field.value == "Prenom")
 field.value = "";

}


function verifMail2(){

var field=document.inscrp.mail;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}


function verifNom(){

var field=document.inscrp.nom;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifPrenom(){

var field=document.inscrp.prenom;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifConfMail(){

var field=document.inscrp.confmail;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifconfMDP(){

var field=document.inscrp.confMdp;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function verifMDP2(){

var field=document.inscrp.mdp;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}

function valid2(){

var OK=verifMail2();
OK=verifMdp2 && OK;
return OK;

}








function initName3()
{
  var field=document.modif.nom;
if (field.value == "<?php $query=(mysql_query("select Nom from ap3_sp_utilisateur where id='".$_SESSION["auth"]."'")); $result=mysql_fetch_assoc($query); echo $result["Nom"]; ?>")
 field.value = "";
}

function initPrenom3()
{
  var field=document.modif.prenom;
if (field.value == "Prenom")
 field.value = "";
}

function initAdresse3()
{
  var field=document.modif.adresse;
if (field.value == "Prenom")
 field.value = "";
}

function initTel3()
{
  var field=document.modif.tel;
if (field.value == "Prenom")
 field.value = "";
}

function initoMDP()
{
  var field=document.modif.ancienMdp;
if (field.value == "Prenom")
 field.value = "";
}

function initnMDP()
{
  var field=document.modif.mdp3;
if (field.value == "Prenom")
 field.value = "";
}

function initnConfMDP()
{
  var field=document.modif.confMdp3;
if (field.value == "Prenom")
 field.value = "";
}

function initMail3()
{
  var field=document.modif.mail3;
if (field.value == "Prenom")
 field.value = "";
}

function initconfmail3()
{
  var field=document.modif.confmail3;
if (field.value == "Prenom")
 field.value = "";
}

verifName3()
verifPrenom3()
verifAdresse3()
verifTel3()
verifnMDP3()
verifnConfMDP3()

verifMail3()


function verifMail2(){

var field=document.inscrp.mail;
if (field.value == "")
 {field.style.border="solid 2px red";
  return false;}
else
 return true;

}














function valid3(){

var OK=verifMail2();
OK=verifMdp2 && OK;
return OK;

}







